package vip.buddha.handler;

import org.springframework.web.bind.annotation.RequestParam;

public class CustomerFallBack {
    public static String fallback_1(@RequestParam(name = "type", required = false) String type,
                                    @RequestParam(name = "name", required = false) String name) {
        return "1111111111-------java代码运行时产生的异常调用，没有异常时该怎么运行，怎么运行 "+type+" "+name;
    }

    public static String fallback_2(@RequestParam(name = "type", required = false) String type,
                                    @RequestParam(name = "name", required = false) String name) {
        return "2222222222-------java代码运行时产生的异常调用，没有异常时该怎么运行，怎么运行 "+type+" "+name;
    }
}
